:root {
    --primary-color: #8B0000;
    --primary-hover: #A00000;
    --accent-color: #FFDE4D;
    --success-color: #2ECC71;
    --bg-body: #393939;
    --bg-card: #FFFFFF;
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}


body {
  
    background: url('hình ảnh/ChatGPT\ Image\ 20_44_02\ 12\ thg\ 6\,\ 2026.png');     
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    overflow-x: hidden; 
    height: 800px;
}


header {
    background: linear-gradient(to bottom, #4a0000 0%, #730000 35%, #990000 70%, #bd0000 100%);
    color: #ffffff;
    text-align: center;
    padding: 20px 20px 35px 20px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    border-bottom: 2px solid var(--accent-color); 
}

header h1 {
    font-size: 36px; 
    font-family: "UTM Colossalis", sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
    text-shadow: 0 3px 8px rgba(0,0,0,0.5);
    color: #FFF266; 
}

header p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}


.progress-container {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background:#FFFFFF;
    padding: 12px 28px;
    border-radius: 50px;
   
    box-shadow: 0 10px 30px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    width: 90%;
    max-width: 500px;
    z-index: 20;
    border: 1px solid rgba(139, 0, 0, 0.15);
}

.progress-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar-bg {
    background: #434142;
    height: 10px;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar-fill {
   
    background: linear-gradient(90deg, #0044AA, #00D2FF) !important;
    height: 100%;
    width: 20%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-status {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.badge-status:hover {
    transform: scale(1.2) rotate(5deg);
}


.dashboard-container {
    display: flex;
    justify-content: center;
    max-width: 1200px; 
    width: 100%;
    margin: 65px auto 40px auto;
    padding: 0 25px;
    flex: 1;
}


.map-section {
    flex: 1;
    border-radius: 24px; 
    padding: 35px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    
    width: fit-content; 
    max-width: 95vw;
   

    background: 
    linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)), 
    url('hình ảnh/ChatGPT Image 20_44_02 12 thg 6, 2026.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    box-shadow: 
        0 10px 30px -5px rgba(0, 0, 0, 0.5), 
        0 20px 60px -10px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(214, 163, 89, 0.3);
    transition: var(--transition-smooth);
}

.section-title {
    font-size: 35px;
    font-weight: 800;
    color:#FF1014;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 35px;
    padding-bottom: 15px;
    width: 100%; 
    font-family: "UTM Eremitage", sans-serif;
    text-align: center; 
    position: relative;
	text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}


.section-title::after {
    content: '✦';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 15px;
    color: var(--accent-color);
    font-size: 16px;
    z-index: 2;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, #8B0000 20%, #8B0000 80%, transparent);
}


.map-wrapper {
    width: 100%;
    max-height: 55vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible; 
    position: relative;
}

.map-container {
    position: relative;
    display: inline-block;
    width: auto;
    height: 100%;
    background-image: url('hình ảnh/bacground1.0.jpg');
    background-size: 100% 100%; 
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    overflow: visible;
    
    box-shadow: 
    0 15px 35px rgba(0,0,0,0.2), 
    inset 0 0 20px rgba(0,0,0,0.3);
    padding: 5px;
}

.vietnam-map-holder {
    width: 100%;
    height: 100%;
    max-height: 55vh;
    display: flex;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease; 
}

.vietnam-map {
    height: 55vh;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    position: relative;
    z-index: 1; 
    margin-left: 17px;
    margin-top: -3px;
}

map area {
    cursor: pointer;
}


.vietnam-map-holder.glowing {
    transform: scale(1.03); 
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}


.map-pin {
    position: absolute;
    width: 34px;
    height: 34px;
    cursor: pointer;
    z-index: 10;
    transform: translate(-50%, -100%);
    transition: var(--transition-smooth);
}

.map-pin::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(231, 76, 60, 0.6);
    border-radius: 50%;
    animation: radarPulse 1.8s infinite ease-out;
    z-index: -1;
    pointer-events: none;
}

.map-pin.visited::after {
    border-color: rgba(46, 204, 113, 0.5);
}

.map-pin svg {
    width: 100%;
    height: 100%;
    fill: #E74C3C;
    stroke: #FFFFFF;
    stroke-width: 1.2px;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.35));
    transition: var(--transition-smooth);
}

.map-pin.visited svg {
    fill: #2980B9;
}

.map-pin:hover {
    transform: translate(-50%, -112%) scale(1.2) !important;
    z-index: 20;
}

.map-pin:hover svg {
    fill: var(--primary-hover) !important;
    filter: drop-shadow(0px 8px 14px rgba(139, 0, 0, 0.5));
}

.map-pin.active {
    transform: translate(-50%, -115%) scale(1.35) !important;
    z-index: 15;
    animation: pinBounce 0.5s ease infinite alternate;
}

.map-pin.active svg {
    fill: var(--accent-color) !important;
    stroke: var(--primary-color);
    stroke-width: 1.5px;
    filter: drop-shadow(0px 10px 16px rgba(0, 0, 0, 0.45));
}


.map-popup {
    position: absolute;
    width: 290px;           
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px; 
    padding: 15px;          
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 1px rgba(0,0,0,0.05);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -105%) scale(0.95);
    border: 1px solid rgba(0,0,0,0.05);
}

.map-popup.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -105%) scale(1);
}

.popup-img-container {
    width: 100%;
    height: 135px;         
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);}
.popup-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;       
}

#popup-title {
    font-size: 18px;
    font-weight: 800;
    margin: 4px 0 6px 0;
    color: #b30000;
    font-family: 'Inter', sans-serif;
}

#popup-desc {
    font-size: 12.5px;        
    line-height: 1.5;
    color: #34495E;
    margin-bottom: 10px;
    text-align: justify;
}

.popup-quote {
    font-size: 11.5px;        
    font-style: italic;
    color: #cc4400;
    border-top: 1px dashed #E2E8F0;
    padding-top: 8px;
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.06);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.popup-close:hover {
    background: #E2E8F0;
    color: #1A202C;
    transform: rotate(90deg);
}


.info-section {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 200;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%); 
   
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px 0 0 24px;
    box-shadow: -15px 0 45px rgba(0, 0, 0, 0.35);
    border-left: 1px solid rgba(0,0,0,0.05);
}

.info-section.open {
    transform: translateX(0);
}

.drawer-close-btn {
    position: absolute;
    top: 30px;
    left: -45px;
    width: 45px;
    height: 45px;
    background: #192897;
    color: #ffffff;
    border: none;
    border-radius: 12px 0 0 12px;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -4px 2px 12px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}
.drawer-close-btn:hover {
    background: #EF8D0B;
    padding-right: 5px;
}

.info-card-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}


.info-card-container::-webkit-scrollbar {
    width: 4px;
}
.info-card-container::-webkit-scrollbar-thumb {
    background: #CBD5E0;
    border-radius: 4px;
}

.info-card {
    display: none; 
    flex-direction: column;
    height: 100%;
}

.info-card.active {
    display: flex;
    animation: contentFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.image-container {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 16px; 
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.info-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.info-card:hover .image-container img {
    transform: scale(1.04); 
}

.info-card h2 {
    color: var(--primary-color);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    font-family: "UTM Avo", sans-serif; 
}

.history-badge-date {
    align-self: flex-start;
    background: rgba(139, 0, 0, 0.08);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(139, 0, 0, 0.15);
}

.card-body p {
    font-size: 15px;
    line-height: 1.8;
    color: #34495E;
    text-align: justify;
}


.timeline-navigation {
    width: 60%;
    background: #7B0002;
    padding: 14px 20px;
    border-radius: 50px; 
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.timeline-btn {
    background: var(--bg-card);
    border: 1px solid #CBD5E0;
    padding: 8px 18px;
    border-radius: 30px; 
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.3);
}

.timeline-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.timeline-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.timeline-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #FFF;
    border: 2px solid #CBD5E0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-dot:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.08);
}

.timeline-dot.active {
    background: var(--accent-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(255, 222, 77, 0.4);
}


footer {
    background: #140000;
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 22px;
    font-size: 13px;
    border-top: 3px solid var(--primary-color);
    letter-spacing: 0.6px;
    margin-top: auto;
}


@keyframes radarPulse {
    0% { width: 10px; height: 10px; opacity: 1; }
    100% { width: 55px; height: 55px; opacity: 0; }
}

@keyframes pinBounce {
    from { transform: translate(-50%, -100%) scale(1.35); }
    to { transform: translate(-50%, -110%) scale(1.35); }
}

@keyframes contentFadeIn {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}


.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: url('hình ảnh/Untitled-1.jpg'); 
    background-size: 200% 100%; 
    background-repeat: no-repeat;
    transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.door-left {
    left: 0;
    background-position: left center; 
}

.door-right {
    right: 0;
    background-position: right center; 
}

.intro-content {
    position: relative;
    z-index: 10000;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.start-btn {
    padding: 18px 45px;
    font-size: 22px;
    font-weight: 800;
    font-family: "UTM Colossalis", sans-serif;
    color: #FFFFFF;
    background: #FF2427;
    border: 1px solid #FFFFFF;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.start-btn:hover {
    transform: scale(1.08);
    background: #FF9E00;
    filter: drop-shadow(0 0 15px rgba(255, 222, 77, 0.9)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    box-shadow: 0 15px 35px rgba(139, 0, 0, 0.5);
}

.intro-overlay.opened .door-left {
    transform: translateX(-100%); 
}

.intro-overlay.opened .door-right {
    transform: translateX(100%); 
}

.intro-overlay.opened .intro-content {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none; 
}


@media (max-width: 768px) {
    .dashboard-container { flex-direction: column; gap: 30px; }
    .info-section { width: 100%; }
    .drawer-close-btn { left: auto; right: 20px; top: 15px; border-radius: 50%; width: 35px; height: 35px; }
}